import request from '@/utils/request'

// 查询附列表
export function listAttached(query) {
  return request({
    url: '/attached/attached/list',
    method: 'get',
    params: query
  })
}

// 查询附详细
export function getAttached(id) {
  return request({
    url: '/attached/attached/' + id,
    method: 'get'
  })
}

// 新增附
export function addAttached(data) {
  return request({
    url: '/attached/attached',
    method: 'post',
    data: data
  })
}

// 修改附
export function updateAttached(data) {
  return request({
    url: '/attached/attached',
    method: 'put',
    data: data
  })
}

// 删除附
export function delAttached(id) {
  return request({
    url: '/attached/attached/' + id,
    method: 'delete'
  })
}
// 删除附
export function logicDelAttached(id) {
  return request({
    url: '/attached/attached/' + id,
    method: 'delete'
  })
}

// 导出附
export function exportAttached(query) {
  return request({
    url: '/attached/attached/export',
    method: 'get',
    params: query
  })
}
